#define _CRT_SECURE_NO_WARNINGS 1
#include"Stack.h"
void test1()
{
	Stackinit(&s);
	Stackpush(&s, 1);
	Stackpush(&s, 2);
	Stackpush(&s, 3);
	Stackpush(&s, 4);
	Stackpop(&s);
	Stackpop(&s);
	Stackpop(&s);
	Stackpop(&s);

}
void test2()
{
	Stackinit(&s);
	Stackpush(&s, 1);
	Stackpush(&s, 2);
	Stackpush(&s, 3);
	Stackpush(&s, 4);
	printf("%d ", Stacktop(&s));
	Stackpop(&s);
	printf("%d ", Stacktop(&s));
	Stackpop(&s);
	printf("%d ", Stacktop(&s));
	Stackpop(&s);
	printf("%d ", Stacktop(&s));
	Stackpop(&s);
}
int main()
{
	test1();
	test2();
	return 0;
}